Skip to content

feat: Login with Internet Identity#495

Open
adamspofford-dfinity wants to merge 16 commits intomainfrom
spofford/ii-login-poc
Open

feat: Login with Internet Identity#495
adamspofford-dfinity wants to merge 16 commits intomainfrom
spofford/ii-login-poc

Conversation

@adamspofford-dfinity
Copy link
Copy Markdown
Contributor

@adamspofford-dfinity adamspofford-dfinity commented Apr 10, 2026

No description provided.

Comment thread crates/icp-cli/src/operations/ii_poll.rs Outdated
Comment thread crates/icp-cli/src/commands/identity/link/ii.rs
@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review April 20, 2026 16:19
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner April 20, 2026 16:19
}

pub(crate) async fn exec(ctx: &Context, args: &IiArgs) -> Result<(), IiError> {
ctx.dirs
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can have a follow up PR to do the same thing in the HSM and in identity new

#[derive(Debug, Subcommand)]
pub(crate) enum Command {
Hsm(hsm::HsmArgs),
#[command(hide = true)]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO comment to say that we will unhide it when the feature is public?

let mut headers = HeaderMap::new();
headers.insert(
header::ACCESS_CONTROL_ALLOW_ORIGIN,
HeaderValue::from_static("*"),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be limited to the URL that was opened?


use crate::commands::identity::StorageMode;

/// Link an Internet Identity to a new identity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add more details here in the expanded help about how this can be useful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants